package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.HomepageParam;
import com.ruoyi.system.mapper.HomepageParamMapper;
import com.ruoyi.system.service.HomePageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HomePageServiceImpl implements HomePageService {

    @Resource
    private HomepageParamMapper homepageParamMapper;//操作首页参数配置表（homepage_param）


    /**
     * 查询首页参数配置表的数据
     * @param dbName
     * @return
     */
    @Override
    public List<HomepageParam> findHomepageParam(String dbName) {
        return homepageParamMapper.findAllHomepageParam(dbName);
    }

    public int updateHomePageParamTagNameById(String dbName,HomepageParam homepageParam) {
        return homepageParamMapper.updateHomePageParamTagNameById(dbName,homepageParam);
    }
}
